Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DPE-4345] Disable pgBackRest service initialisation #530

Merged
merged 15 commits into from
Jul 18, 2024

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Jul 11, 2024

Issue

The pgBackRest TLS service is enabled in the Snap, which makes it start automatically on boot in the charm, creating some noise in the system logs, like the following (from #468):

charmed-postgresql.pgbackrest-service[7546]: ERROR: [037]: server command requires option: tls-server-auth

Solution

Update the snap.

Also, restart the services that were already enabled if the unit reboots (in src/charm.py).

This PR depends on canonical/charmed-postgresql-snap#41. After that PR is merged, I'll switch the snap back to the right track and revisions in src/constants.py.

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…ckrest-service-initialisation

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.81%. Comparing base (2d790b6) to head (186ec03).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #530      +/-   ##
==========================================
+ Coverage   70.05%   70.81%   +0.75%     
==========================================
  Files          11       11              
  Lines        3016     3022       +6     
  Branches      535      536       +1     
==========================================
+ Hits         2113     2140      +27     
+ Misses        785      765      -20     
+ Partials      118      117       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@marceloneppel marceloneppel changed the title [DPE-4345] Restart services on reboot [DPE-4345] Disable pgBackRest service initialisation Jul 12, 2024
@marceloneppel marceloneppel marked this pull request as ready for review July 12, 2024 12:00
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…ices-on-initialisation

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
Signed-off-by: Marcelo Henrique Neppel <[email protected]>
…ices-on-initialisation

Signed-off-by: Marcelo Henrique Neppel <[email protected]>
@marceloneppel marceloneppel merged commit fa0e54f into main Jul 18, 2024
79 checks passed
@marceloneppel marceloneppel deleted the dpe-4345-disable-services-on-initialisation branch July 18, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants